﻿
var WebSocket = window.WebSocket || window.MozWebSocket;
var socket;
var msg;
function initial() {
    msg = document.getElementById("msg");
    document.getElementById('closebtn').disabled = true;
}

function doOpen() {
    if (document.querySelector('#name').value == "") {
        alert('请输入用户姓名');
        return;
    }
}